package io.fft.flight.common.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

/**
 * 字典
 */
@Slf4j
//@Aspect
//@Component
public class DictAspect {
    @Pointcut("@annotation(io.fft.flight.common.annotation.DictTranslate)")
    public void pointCut() {
    }

    @AfterReturning("pointCut()")
    public void before(JoinPoint joinPoint) throws NoSuchMethodException {
        log.info("service 方法后置通知处理字典翻译.....");
    }


}
